<?php

defined('LAB_PATH')
    || define('LAB_PATH', realpath(dirname(__FILE__)));

// Ensure library/ is on include_path
set_include_path(implode(PATH_SEPARATOR, array(
    realpath(LAB_PATH . '/library'),
    get_include_path(),
)));

/**
* @return string
*/
function helloWorld()
{
	return "hello flex, I'm remote object.";	
}

$server = new Zend_Amf_Server();
$server->addFunction('helloWorld');
$response = $server->handle();
echo $response;
